function online()
{
	var url='../json/online';
	var params="";
	var myAjax=new Ajax.Request(
    url,
    {
    	method:'post',
		parameters:params,
		onComplete: processResponse1,
		asynchronous:true
    	
    });
}
function processResponse1(request)
{
	var res = request.responseText.evalJSON();
	var online=res['result']['online'];
	var username=document.cookie;
	document.getElementById("onp").innerHTML='当前在线人数：'+online+'人';
	document.getElementById("demo").innerHTML='Welcome '+username+'!';
}